_printkey = "F10"
_hidekey = "F8"

dofile(getinstalldir().."scripts/itemtypesindex.lua")
dofile(getinstalldir().."scripts/item_evaluator.lua") 
--[[ NON MODIFICARE OLTRE ]]
   
local function target()
UO.TargCurs = true
while UO.TargCurs == true do
      wait (50)
      end
return UO.LTargetID
end
          
local function printinfo(col,col2)
_ID = target()
local _itemname = UO.Property(_ID)
print ("Item: " .. _itemname )
print ("ID: " .. _ID)
local _itemcnt = UO.ScanItems(false)
for _itemindex = 1 , _itemcnt do 
 local id,Type,Kind,ContID,X,Y,Stack,Rep,Col = UO.GetItem(_itemindex)
  if id == _ID then
     _Type = Type
     if itemtypesindex[Type] ~= nil then
       print (itemtypesindex[Type][1]) 
       if itemtypesindex[Type][1] == "j"  then
            value = evaluate(_ID,Type)
       end
     end
     break
     end
end
--print ("Type: " .. _Type .. " Value: " .. value)
--UO.ExMsg(_ID,3,233, "Value: " .. value)
UO.SysMessage ( _itemname .. " OEUO Type: " .. _Type, col)
UO.SysMessage ( "OEUO ID: " .. _ID , col2)
end

local function hideitem()
_ID = target()
if _ID ~= UO.CharID then
   UO.HideItem(_ID)
   end
end

repeat 
if getkey(_printkey) then
  printinfo (68,233)
elseif getkey(_hidekey) then
  hideitem ()
end
until false == true